package components.tools
{
	import UIFree.uif_component;
	
	import components.clt_component;
	import components.clt_selectBase;
	
	import flash.geom.Rectangle;

	public class clt_selectLayer extends clt_component {
		protected var _selectComponent: clt_selectBase;
		public function clt_selectLayer(parent:uif_component, a_data: Object, previewURL: String, selectEvent: String,
										ax:int=0, ay:int=0, awidth:int=0, aheight:int=0) {
			super(parent, ax, ay, awidth, aheight);
			createComponentsA(a_data, previewURL, selectEvent);
		}
		
		protected function createComponentsA(a_data: Object, previewURL: String, selectEvent: String): void {
			var inner: Rectangle = getSelectRect();
			_selectComponent = new clt_selectBase(this, a_data, previewURL, selectEvent, inner.x, inner.y, inner.width, inner.height, true); 
		}
		
		protected function getSelectRect(): Rectangle {
			return getInner();
		}
	}
}